package swingtb;

import java.util.Vector;

import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;
import javax.swing.table.JTableHeader;
import javax.swing.table.TableCellRenderer;

public class MTable extends JTable{
	public MTable(Vector<Vector<String>> rowData,Vector<String> columnNames){
		super(rowData,columnNames);
		
	}
	public JTableHeader getTableHeader(){
		JTableHeader tableHeader=super.getTableHeader();
		tableHeader.setReorderingAllowed(false);
		DefaultTableCellRenderer HR=(DefaultTableCellRenderer)tableHeader.getDefaultRenderer();
		HR.setHorizontalAlignment(DefaultTableCellRenderer.CENTER);		
		return tableHeader;		
	}
	public TableCellRenderer getDefaultRenderer(Class<?> columnClass){
		
		return null;
		
	}

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		

	}

}
